package cn.kpi.dao.payassessment;

import cn.kpi.common.persistence.MyBatisDao;
import cn.kpi.entity.payassessment.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@MyBatisDao
public interface PayassessmentDao {

//    public List<TransportationPayEntity> GetTPPayItem(@Param("zqid") Long ZQID,@Param("orgid") Long orgid);
//    public int InsertTPPayItemBatch(List<TransportationPayEntity> list)throws Exception;
//    public int DeleteTPPayItem(@Param("zqid") Long ZQID);

    public AssessRulePay getAssessbyCode(@Param("moduleCode") String moduleCode);

    public List<AssessRulePay> getAssessRuleList();

    public int UpdateAssessRuleBatch(List<AssessRulePay> list) throws Exception;

    public List<TransportationPayVoEntity> GetTranPayListByWhere(@Param("where") String where) throws Exception;
    public Integer GetTranPayListCountByWhere (@Param("where") String where) throws Exception;
    public int deleteTranPay(@Param("where") String where) throws Exception;
    public int insertTranPayList(List<TransportationPayVoEntity> list) throws Exception;
    public int updateTranPayList(List<TransportationPayVoEntity> list) throws Exception;
    public int  updateTranPayListByid(List<TransportationPayVoEntity> list) throws Exception;
    public int updateTranPay(@Param("orgsummaryids")Long orgsummaryids,@Param("status")int status) throws Exception;
    public int updateTranPayBm(@Param("orgsummaryids")String orgsummaryids,@Param("status")int status) throws Exception;


    public List<DeptSWPayVoEntity> GetDeptSWPayListByWhere(@Param("where") String where) throws Exception;
    public int GetDeptSWPayListCountByWhere(@Param("where") String where) throws Exception;
    public int deleteDeptSWPay(@Param("where") String where) throws Exception;
    public int insertDeptSWPayList(List<DeptSWPayVoEntity> list) throws Exception;
    public int updateDeptSWPayListByid(List<DeptSWPayVoEntity> list) throws Exception;
    public int updateDeptSWPay(@Param("orgsummaryids")Long orgsummaryids,@Param("status")int status) throws Exception;
    public int updateDeptSWPayWhere(@Param("where") String where, @Param("status") Integer status) throws Exception;

    public List<WorkPayVoEntity> GetWorkPayListByWhere(@Param("where") String where) throws Exception;
    public List<WorkSeanVoEntity> GetWorkPaySeasonListByWhere(@Param("where") String where,@Param("whereLimt") String whereLimt,@Param("month1")String month1,@Param("month2")String month2,@Param("month3")String month3,@Param("month")String month) throws Exception;
    public Integer GetWorkPayListCountByWhere (@Param("where") String where) throws Exception;
    public int deleteWorkPay(@Param("where") String where) throws Exception;
    public int insertWorkPayList(List<WorkPayVoEntity> list) throws Exception;
    public int updateWorkPayList(List<WorkPayVoEntity> list) throws Exception;
    public int updateWorkPayListByid(List<WorkPayVoEntity> list) throws Exception;
    public int updateWorkpay(@Param("orgsummaryids")Long orgsummaryids,@Param("status")int status) throws Exception;
    public int updateWorkpayWhere(@Param("where") String where,@Param("status")int status) throws Exception;


    public List<AllowanceOrgPayEntity> getOrgPayListWhere(@Param("where") String where);
    public int insertOrgPayList(List<AllowanceOrgPayEntity> list) throws Exception;
    public List<AllowancePayEntity> getAllPayListWhere(@Param("where") String where);
    public int insertAllPayList(List<AllowancePayEntity> list) throws Exception;

    public int saveDeptUserList(DpUserListEntity dpUserListEntities) throws Exception;
    public int updateDeptUserList(DpUserListEntity dpUserListEntities) throws Exception;
    public int deleteDeptUserList(@Param("dpuserid") Long dpuserid) throws Exception;
    public List<DpUserListEntity> getDetpUserList(@Param("where") String where) throws Exception;
    public DpUserListEntity getDetpUser(@Param("dpuserid") Long dpuserid)throws Exception;
    public int getDetpUserCount(@Param("where") String where) throws Exception;
}